/*
 * ODO: Real-Time In-Memory ORM/DBMS Grid software
 * Copyright (c) 2008, Michael Oksenenko
 * All rights reserved.
 */
#include "ConsoleIF.hpp"

#include "Version.hpp"

#include <iostream>
#include <string>

using namespace odo;

void ConsoleIF::printVersion() {
	Version version;
	std::wcout << L"odo version: " << version.toString()
		<< std::endl << std::endl;
}

void ConsoleIF::printDone() {
	std::wcout << std::endl << L"done." << std::endl;
}


void ConsoleIF::waitForEnter() {
	waitForEnter(L"press enter to exit...");
}

void ConsoleIF::waitForEnter(const wchar_t* aMessage) {
	std::wcout << aMessage << std::endl;
	std::wstring done;
	std::getline(std::wcin, done);
}


ConsoleIF::~ConsoleIF() {
	// void
}
